﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>添加小分类</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    
    <script src="/admin/js/boot.js" type="text/javascript"></script>

    <style type="text/css">
    html, body
    {
        font-size:12px;
        padding:0;
        margin:0;
        border:0;
        height:100%;
        overflow:hidden;
    }
    </style>
</head>
<body>    
     
    <form id="form1" method="post" action="../../../ad_class_add.do">
        <%--<input name="id" class="mini-hidden" />--%>
        <div style="padding-left:11px;padding-bottom:5px;">
            <table style="table-layout:fixed;">
                <tr>
                    <td style="width:150px;">子分类名称:</td>
                    <td style="width:150px;">
                        <%--class="mini-textbox"--%>
                        <input name="name"  required="true"  emptyText="请输入分类名称"/>
                    </td>

                </tr>
                <tr>
                <tr>
                    <td style="width:70px;">分类：</td>
                    <td style="width:150px;">
                        <input id="btnEdit1" name="pid" class="mini-buttonedit"  onbuttonclick="onButtonEdit" required="true" text="${className}"/>

                        <script type="text/javascript">
                            mini.parse();
                            function onButtonEdit(e) {
                                var btnEdit = this;
                                mini.open({
                                    url: "/admin/page/goods/selectclass.jsp",
                                    showMaxButton: false,
                                    title: "选择树",
                                    width: 350,
                                    height: 350,
                                    ondestroy: function (action) {
                                        if (action == "ok") {
                                            var iframe = this.getIFrameEl();
                                            var data = iframe.contentWindow.GetData();
                                            data = mini.clone(data);
                                            if (data) {
                                                btnEdit.setValue(data.id);
                                                btnEdit.setText(data.name);
                                            }
                                        }
                                    }
                                });
                            }
                        </script>
                    </td>
                </tr>
            </table>
        </div>

                <input type="submit" value="提交" ><br><br>
                <input type="reset" value="取消">
    </form>


</body>
</html>
